﻿using System;
using System.Linq;
using System.Linq.Expressions;

namespace Yala.Core.Domain {
    public interface IReadOnlyRepository<T> where T : class, new() {
        T Single(Expression<Func<T, bool>> expression);
        IQueryable<T> All();
        void Dispose();
    }
}
